﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UnNormalReport.aspx.cs" Inherits="Trangtrai.nhatky.UnNormalReport" MasterPageFile="~/SiteMaster.Master" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<asp:Content ID="Content1" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">
     <a href="TomHis.aspx" runat="server" visible="false" id="linkButton">
        <dx:aspxlabel ID="lbError" runat="server" Text="Bạn chưa tạo nhật ký nuôi tôm ngày hôm nay."
            CssFilePath="~/App_Themes/SoftOrange/{0}/styles.css" 
         CssPostfix="SoftOrange">
        </dx:aspxlabel>
    </a>
    <center>
        <table width="100%" bgcolor="#81B3F1">
            <tr>
                <td align="center">
                    <dx:aspxlabel ID="lbtTitle" runat="server" Text="BÁO CÁO BẤT THƯỜNG" 
                        Font-Size="Large">
                    </dx:aspxlabel>
                </td>
            </tr>
            
            <tr>
                <td>
                    <dx:aspxgridview ID="tomUnNormalReport" runat="server" Width="100%" AutoGenerateColumns="False"
                         KeyFieldName="choanID" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                        CssPostfix="Office2003Blue" 
                        oncelleditorinitialize="tomHis_CellEditorInitialize" 
                        onrowinserting="tomHis_RowInserting" onrowdeleting="tomHis_RowDeleting">
                        
                        <Styles CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" CssPostfix="Office2003Blue">
                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                            </Header>
                            <LoadingPanel ImageSpacing="10px">
                            </LoadingPanel>
                        </Styles>
                        <SettingsPager>
                            <AllButton Text="All">
                            </AllButton>
                            <NextPageButton Text="Next &gt;">
                            </NextPageButton>
                            <PrevPageButton Text="&lt; Prev">
                            </PrevPageButton>
                        </SettingsPager>
                        <ImagesFilterControl>
                            <LoadingPanel Url="~/App_Themes/Office2003Blue/Editors/Loading.gif">
                            </LoadingPanel>
                        </ImagesFilterControl>
                        <Images SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css">
                            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2003Blue/GridView/gvLoadingOnStatusBar.gif">
                            </LoadingPanelOnStatusBar>
                            <LoadingPanel Url="~/App_Themes/Office2003Blue/GridView/Loading.gif">
                            </LoadingPanel>
                        </Images>
                        <Columns>
                            <dx:GridViewDataTextColumn Caption="Ghi chú" VisibleIndex="16" FieldName="note">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Xử lý tôm" VisibleIndex="15">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Sức khỏe tôm" VisibleIndex="13" 
                                FieldName="tomStatus">
                                <HeaderStyle HorizontalAlign="Center" Wrap="True" />
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="OXY hòa tan" VisibleIndex="12" 
                                FieldName="hoaTan">
                                <HeaderStyle Wrap="True" />
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="OXY hóa học(COD)" VisibleIndex="11" 
                                FieldName="cod">
                                <HeaderStyle HorizontalAlign="Center" Wrap="True" />
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="OXY sinh hóa (BOD)" VisibleIndex="10" 
                                FieldName="bod">
                                <HeaderStyle HorizontalAlign="Center" Wrap="True" />
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Hiện tượng" VisibleIndex="9" 
                                FieldName="hienTuong">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Màu nước" VisibleIndex="8" FieldName="mau">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Độ mặn(%)" VisibleIndex="7" 
                                FieldName="doMan">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Độ trong(cm)" VisibleIndex="6" 
                                FieldName="doTrong">
                                <HeaderStyle HorizontalAlign="Center" Wrap="True" />
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="KIỀM (ppm)" VisibleIndex="5" 
                                FieldName="doKiem">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Tuổi (Ngày)" VisibleIndex="1" FieldName="age">
                                <HeaderStyle HorizontalAlign="Center" Wrap="True" />
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataComboBoxColumn Caption="Tên ao tôm" VisibleIndex="0" FieldName="aoName" 
                                Width="80px">
                                <PropertiesComboBox TextField="aoName" ValueField="aoName" EnableSynchronization="False"
                                    IncrementalFilteringMode="StartsWith">
                                </PropertiesComboBox>
                            </dx:GridViewDataComboBoxColumn>
                            <dx:GridViewDataTextColumn Caption="STT" FieldName="choanID" Visible="false">
                            </dx:GridViewDataTextColumn>
                        </Columns>
                        <SettingsEditing Mode="Inline" />
                        <StylesEditors>
                            <ProgressBar Height="25px">
                            </ProgressBar>
                        </StylesEditors>
                    </dx:aspxgridview>
                </td>
            </tr>
            <tr>
                <td align="left">
                    <dx:aspxbutton ID="sendReport" runat="server" Text="Gửi" 
                        CssFilePath="~/App_Themes/SoftOrange/{0}/styles.css" CssPostfix="SoftOrange" 
                        SpriteCssFilePath="~/App_Themes/SoftOrange/{0}/sprite.css" 
                        onclick="createReport_Click">
                    </dx:aspxbutton>
                </td>
            </tr>
        </table>
    </center>                            
</asp:Content>
